.page-container {
  padding: 20px;
  background-color: #f5f5f5;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.order-number {
  font-weight: 600;
  margin-left: 5px;
  color: #1890ff;
}

.btn-copy {
  background: none;
  border: none;
  color: #1890ff;
  padding: 0 5px;
  margin-left: 8px;
  cursor: pointer;
}

.header-right {
  display: flex;
  gap: 10px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.allocation-detail {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.detail-section {
  margin-bottom: 20px;
}

.info-section {
  padding: 0 0 20px 0;
  border-bottom: 1px solid #e8e8e8;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.info-item {
  flex: 1;
  min-width: 250px;
  margin-bottom: 10px;
  padding-right: 20px;
}

.info-label {
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.info-value {
  font-size: 15px;
  color: #333;
}

.full-width {
  width: 100%;
}

.full-width .info-item {
  width: 100%;
  flex: 100%;
}

.custom-tabs {
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.custom-tabs .nav-link {
  border: none;
  color: #666;
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
}

.custom-tabs .nav-link.active {
  color: #1890ff;
  background-color: transparent;
  border-bottom: 2px solid #1890ff;
}

.tab-content {
  padding: 15px 0;
}

.attachment-section {
  margin-top: 10px;
}

.attachment-section h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #333;
}

.attachment-list {
  padding: 0;
}

.attachment-item {
  margin-bottom: 12px;
}

.attachment-link {
  text-decoration: none;
  color: #1890ff;
  display: flex;
  align-items: center;
}

.attachment-link:hover {
  text-decoration: underline;
  color: #40a9ff;
}

.attachment-name {
  margin-left: 5px;
}

.attachment-name::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #1890ff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.no-data {
  color: #999;
  padding: 20px;
  font-size: 14px;
  background-color: #fafafa;
  border-radius: 4px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  width: calc(33.333% - 10px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.file-icon {
  font-size: 24px;
  margin-right: 15px;
  color: #1890ff;
}

.file-info {
  flex: 1;
}

.file-name {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
  word-break: break-all;
}

.file-meta {
  display: flex;
  font-size: 12px;
  color: #999;
}

.file-size {
  margin-right: 15px;
}

.file-actions {
  display: flex;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
  color: #fff;
}

.bg-primary {
  background-color: #1890ff;
}

.bg-warning {
  background-color: #faad14;
}

.bg-success {
  background-color: #52c41a;
}

.bg-danger {
  background-color: #f5222d;
}

.bg-secondary {
  background-color: #8c8c8c;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: #fafafa;
  font-weight: 500;
  text-align: center;
}

.table td, .table th {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e8e8e8;
}

.table .text-end {
  text-align: right;
}

// 底部操作按钮区域样式
.footer-actions {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.footer-actions .btn {
  min-width: 120px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-actions .btn i {
  font-size: 14px;
}

// 出入库记录样式
.warehouse-record-section {
  margin-bottom: 30px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.record-header {
  padding: 12px 16px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.record-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-no {
  font-weight: 500;
  font-size: 16px;
  color: #333;
}

.record-status {
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
  color: #fff;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #666;
}

.record-details {
  padding: 0;
}

.record-details .table {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .info-item {
    min-width: 100%;
  }
  
  .file-item {
    width: 100%;
  }
  
  .header-right {
    flex-wrap: wrap;
  }
} 